package cn.com.roy.thread.t3_2_6.join_more_test;

public class Run1 {

    public static void main(String[] args) {
        try {
            ThreadB threadB = new ThreadB();
            ThreadA threadA = new ThreadA(threadB);

            threadA.start();
            threadB.start();
            threadB.join(2000);

            System.out.println("main end "+ System.currentTimeMillis());
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
    }
}
